package com.uk.ui.manaxhim;

import com.uk.ui.tarifa.TarifaNavigationTree;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.Tree;

public class ManaxhimNavigationTree extends Tree{
	
	public static final Object USERS = "Listo perdorues";
	public static final Object ADD_USER = "Shto perdorues";
	//public static final Object CHANGE_PARAMS = "Ndrysho parametra";
	

	public ManaxhimNavigationTree(ManaxhimPanel manaxhimPanel) {
		super();
		addItem(USERS);
		
		addItem(ADD_USER);
		//addItem(CHANGE_PARAMS);
		setItemIcon(USERS, new ThemeResource("icons/32/users.png"));
		setItemIcon(ADD_USER, new ThemeResource("icons/32/user.png"));
		//setItemIcon(CHANGE_PARAMS, new ThemeResource("icons/32/settings.png"));
		
		this.setParent(ADD_USER, USERS);
		this.setChildrenAllowed(ManaxhimNavigationTree.ADD_USER, false);
		//this.setChildrenAllowed(ManaxhimNavigationTree.CHANGE_PARAMS, false);
		this.expandItem(USERS);
		setSelectable(true);
		setNullSelectionAllowed(false);
		this.addListener((ItemClickListener)manaxhimPanel);
	}

}
